import './style.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 确保导入路由
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'

const app = createApp(App)
app.use(ElementPlus) // 注册ElementPlus
app.use(router) // 必须注册路由
const pinia = createPinia()
app.use(pinia)
app.mount('#app')